import request from '@/util/request'

export default {
    searchBB(page,pageSize,data){
        return request({
            url:`/bookborrow/search/${page}/${pageSize}`,
            method:"post",
            data
        })
    },

    add(data){
        return request({
            url: '/bookborrow/add',
            method: 'post',
            data
        })
    },

    update(data){
        return request({
            url: '/bookborrow/update',
            method: 'put',
            data
        })
    },

    delete(did){
        return request({
            url: `/bookborrow/delete/${did}`,
            method: 'delete',
        })
    }
}
